package io.github.talelin.latticy.dto;

import io.github.talelin.latticy.common.annotation.IsMobile;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class MobileLoginDTO {
    @NotBlank
    @IsMobile
    private String mobile;
    @NotBlank
    @Length(min = 6, max = 6, message = "验证码为6位数")
    private String code;
}
